"use client";

import { useTranslations } from "next-intl";

export function Companies() {
  const t = useTranslations("companies");

  return (
    <div>
      <h3>{t("title")}</h3>

      <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 mt-4">
        <a
          href="https://midday.ai?utm_source=languine"
          target="_blank"
          rel="noreferrer"
        >
          <div className="h-[84px] border border-primary flex items-center justify-center">
            <svg
              width="116"
              height="32"
              viewBox="0 0 116 32"
              fill="none"
              xmlns="http://www.w3.org/2000/svg"
            >
              <path
                fillRule="evenodd"
                clipRule="evenodd"
                d="M18.4317 1.86415C16.3261 1.95425 14.3411 2.50962 12.5768 3.43005L18.4317 13.571V1.86415ZM18.4317 18.1202L12.5776 28.2598C14.3417 29.1801 16.3264 29.7352 18.4317 29.8253V18.1202ZM19.6485 29.8253V18.1123L25.5062 28.2581C23.7412 29.1794 21.7552 29.7352 19.6485 29.8253ZM19.6485 13.5789V1.86414C21.7555 1.95424 23.7417 2.51025 25.5069 3.43173L19.6485 13.5789ZM7.2366 23.3642L17.3801 17.5079L11.5242 27.6506C9.80178 26.5517 8.33594 25.0863 7.2366 23.3642ZM30.8459 8.32832L20.7046 14.1834L26.5601 4.04129C28.282 5.14053 29.7471 6.60616 30.8459 8.32832ZM7.23548 8.32699C8.33479 6.60439 9.80079 5.13851 11.5235 4.03933L17.3807 14.1843L7.23548 8.32699ZM6.62611 9.38025C5.70498 11.1455 5.14936 13.1318 5.05957 15.2387H16.7732L6.62611 9.38025ZM6.62707 22.3111C5.70606 20.5466 5.15023 18.5614 5.05979 16.4556H16.7692L6.62707 22.3111ZM21.3104 15.2387H33.021C32.9313 13.1324 32.3758 11.1466 31.4551 9.38165L21.3104 15.2387ZM31.4542 22.3097L21.3146 16.4556H33.0207C32.9303 18.5608 32.3748 20.5456 31.4542 22.3097ZM20.7051 17.5087L26.5593 27.6486C28.2809 26.5497 29.746 25.0845 30.8448 23.3628L20.7051 17.5087Z"
                fill="#F5F5F3"
              />
              <path
                d="M98.6611 11.3461H100.411L103.612 20.1346L106.694 11.3461H108.424L104.149 23.2165C103.751 24.3499 102.996 24.8668 101.803 24.8668H100.55V23.4154H101.644C102.181 23.4154 102.499 23.2165 102.697 22.6598L103.075 21.6855H102.519L98.6611 11.3461Z"
                fill="#F5F5F3"
              />
              <path
                d="M88.4053 14.4479C88.8228 12.3999 90.4533 11.1074 92.7001 11.1074C95.4241 11.1074 96.9353 12.6981 96.9353 15.5216V19.7567C96.9353 20.2339 97.1341 20.4328 97.5914 20.4328H98.009V21.8843H97.3131C96.2394 21.8843 95.3048 21.5264 95.3247 20.2339C94.8674 21.2281 93.6744 22.1229 92.0042 22.1229C89.9164 22.1229 88.2263 21.0094 88.2263 19.1404C88.2263 16.9731 89.8766 16.4163 92.1831 15.959L95.3048 15.3625C95.285 13.5332 94.43 12.6583 92.7001 12.6583C91.348 12.6583 90.4533 13.3543 90.1351 14.587L88.4053 14.4479ZM89.9363 19.1404C89.9363 19.9953 90.672 20.6913 92.2229 20.6714C93.9727 20.6714 95.3446 19.4386 95.3446 16.9929V16.814L92.8194 17.2514C91.2486 17.5298 89.9363 17.6491 89.9363 19.1404Z"
                fill="#F5F5F3"
              />
              <path
                d="M85.6104 7.76697V21.8843H84.139L84.0794 20.3333C83.4828 21.4468 82.3495 22.1229 80.719 22.1229C77.6769 22.1229 76.2651 19.538 76.2651 16.6151C76.2651 13.6923 77.6769 11.1074 80.719 11.1074C82.27 11.1074 83.3834 11.7039 83.9799 12.7776V7.76697H85.6104ZM77.9751 16.6151C77.9751 18.6631 78.85 20.5719 81.0571 20.5719C83.2244 20.5719 84.1191 18.6234 84.1191 16.6151C84.1191 14.5274 83.2244 12.5987 81.0571 12.5987C78.85 12.5987 77.9751 14.5075 77.9751 16.6151Z"
                fill="#F5F5F3"
              />
              <path
                d="M73.6492 7.76697V21.8843H72.1778L72.1182 20.3333C71.5217 21.4468 70.3883 22.1229 68.7579 22.1229C65.7157 22.1229 64.304 19.538 64.304 16.6151C64.304 13.6923 65.7157 11.1074 68.7579 11.1074C70.3088 11.1074 71.4222 11.7039 72.0188 12.7776V7.76697H73.6492ZM66.0139 16.6151C66.0139 18.6631 66.8888 20.5719 69.0959 20.5719C71.2632 20.5719 72.1579 18.6234 72.1579 16.6151C72.1579 14.5274 71.2632 12.5987 69.0959 12.5987C66.8888 12.5987 66.0139 14.5075 66.0139 16.6151Z"
                fill="#F5F5F3"
              />
              <path
                d="M60.0498 11.346H61.6802V21.8843H60.0498V11.346ZM60.01 9.69569V7.80676H61.72V9.69569H60.01Z"
                fill="#F5F5F3"
              />
              <path
                d="M42.9624 11.346H44.4537L44.5133 13.1355C44.9905 11.8431 46.0841 11.1074 47.5555 11.1074C49.0666 11.1074 50.1602 11.9226 50.6175 13.3344C51.0749 11.9028 52.1883 11.1074 53.8387 11.1074C55.9463 11.1074 57.1791 12.5788 57.1791 15.104V21.8843H55.5487V15.5812C55.5487 13.6525 54.7931 12.5589 53.5007 12.5589C51.8503 12.5589 50.8959 13.6724 50.8959 15.6011V21.8843H49.2655V15.5812C49.2655 13.6923 48.49 12.5589 47.2175 12.5589C45.587 12.5589 44.5928 13.7122 44.5928 15.5812V21.8843H42.9624V11.346Z"
                fill="#F5F5F3"
              />
            </svg>
          </div>
        </a>

        <a
          href="https://openpanel.dev?utm_source=languine"
          target="_blank"
          rel="noreferrer"
        >
          <div className="h-[84px] border border-primary flex items-center justify-center">
            <svg
              width="148"
              height="22"
              viewBox="0 0 148 22"
              fill="none"
              xmlns="http://www.w3.org/2000/svg"
            >
              <g clipPath="url(#clip0_575_424)">
                <path
                  fillRule="evenodd"
                  clipRule="evenodd"
                  d="M9.52875 14.1682C12.0963 14.1682 14.1777 12.0868 14.1777 9.51923C14.1777 6.9517 12.0963 4.87029 9.52875 4.87029C6.96123 4.87029 4.87981 6.9517 4.87981 9.51923C4.87981 12.0868 6.96123 14.1682 9.52875 14.1682ZM9.52875 19.0385C14.7861 19.0385 19.048 14.7766 19.048 9.51923C19.048 4.26191 14.7861 0 9.52875 0C4.27143 0 0.00952148 4.26191 0.00952148 9.51923C0.00952148 14.7766 4.27143 19.0385 9.52875 19.0385Z"
                  fill="white"
                />
                <path
                  d="M22.8557 2.43515C22.8557 1.09026 23.8975 0 25.1826 0C26.4678 0 27.5096 1.09026 27.5096 2.43515V16.6033C27.5096 17.9482 26.4678 19.0385 25.1826 19.0385C23.8975 19.0385 22.8557 17.9482 22.8557 16.6033V2.43515Z"
                  fill="white"
                />
                <path
                  d="M31.3171 2.43269C31.3171 1.08915 32.3589 0 33.6441 0C34.9292 0 35.971 1.08915 35.971 2.43269V7.29808C35.971 8.6416 34.9292 9.73077 33.6441 9.73077C32.3589 9.73077 31.3171 8.6416 31.3171 7.29808V2.43269Z"
                  fill="white"
                />
                <path
                  d="M147.118 2.30688V16.3169H145.072V2.30688H147.118Z"
                  fill="white"
                />
                <path
                  d="M138.294 16.5289C137.259 16.5289 136.368 16.3077 135.62 15.8654C134.876 15.4185 134.302 14.7914 133.896 13.9842C133.494 13.1724 133.294 12.2215 133.294 11.1316C133.294 10.0553 133.494 9.10668 133.896 8.28578C134.302 7.46489 134.867 6.82414 135.593 6.36353C136.322 5.90293 137.175 5.67261 138.151 5.67261C138.744 5.67261 139.318 5.77068 139.875 5.96677C140.431 6.16287 140.93 6.4707 141.373 6.89026C141.815 7.30983 142.164 7.85484 142.419 8.5252C142.675 9.19104 142.803 10.0006 142.803 10.9537V11.6788H134.45V10.1465H140.798C140.798 9.60837 140.689 9.13177 140.47 8.71677C140.251 8.29721 139.943 7.96657 139.546 7.72483C139.154 7.48312 138.694 7.36229 138.164 7.36229C137.59 7.36229 137.088 7.50364 136.66 7.78643C136.236 8.0646 135.907 8.42946 135.675 8.88093C135.447 9.32786 135.332 9.81356 135.332 10.338V11.5352C135.332 12.2375 135.455 12.8349 135.702 13.3275C135.953 13.82 136.302 14.1963 136.748 14.4562C137.196 14.7116 137.718 14.8393 138.315 14.8393C138.703 14.8393 139.056 14.7845 139.375 14.6751C139.695 14.5611 139.971 14.3924 140.203 14.1689C140.435 13.9454 140.614 13.6695 140.737 13.3411L142.673 13.69C142.517 14.2601 142.239 14.7595 141.838 15.1882C141.441 15.6123 140.942 15.9429 140.34 16.1801C139.742 16.4127 139.06 16.5289 138.294 16.5289Z"
                  fill="white"
                />
                <path
                  d="M124.298 10.0781V16.3169H122.253V5.80943H124.216V7.51963H124.346C124.588 6.96325 124.966 6.51631 125.482 6.17882C126.001 5.84133 126.656 5.67261 127.445 5.67261C128.161 5.67261 128.788 5.8231 129.326 6.12411C129.865 6.42052 130.282 6.86289 130.578 7.45122C130.874 8.03951 131.023 8.76691 131.023 9.63341V16.3169H128.977V9.87968C128.977 9.1181 128.779 8.52292 128.382 8.09426C127.985 7.66098 127.44 7.44437 126.747 7.44437C126.273 7.44437 125.851 7.54696 125.482 7.7522C125.117 7.95743 124.827 8.25841 124.613 8.65522C124.403 9.04741 124.298 9.52168 124.298 10.0781Z"
                  fill="white"
                />
                <path
                  d="M114.343 16.5495C113.677 16.5495 113.076 16.4263 112.537 16.1801C111.999 15.9293 111.573 15.5667 111.258 15.0924C110.948 14.6181 110.793 14.0366 110.793 13.348C110.793 12.7551 110.907 12.2671 111.135 11.8841C111.363 11.501 111.671 11.1977 112.059 10.9742C112.446 10.7508 112.879 10.582 113.358 10.468C113.837 10.354 114.325 10.2673 114.822 10.208C115.452 10.1351 115.962 10.0758 116.354 10.0302C116.747 9.98004 117.032 9.9002 117.21 9.79075C117.388 9.6813 117.476 9.50344 117.476 9.25717V9.20928C117.476 8.61185 117.308 8.14896 116.97 7.82061C116.637 7.49226 116.14 7.32807 115.479 7.32807C114.79 7.32807 114.248 7.48084 113.851 7.78643C113.459 8.0874 113.187 8.42261 113.037 8.792L111.114 8.3542C111.342 7.71573 111.675 7.20038 112.113 6.80819C112.556 6.41143 113.064 6.12412 113.639 5.94625C114.213 5.76382 114.817 5.67261 115.452 5.67261C115.871 5.67261 116.316 5.72278 116.786 5.8231C117.26 5.91888 117.702 6.09674 118.112 6.35668C118.527 6.61662 118.867 6.98833 119.132 7.47174C119.396 7.95058 119.528 8.5731 119.528 9.33929V16.3169H117.531V14.8803H117.449C117.317 15.1448 117.119 15.4048 116.854 15.6602C116.589 15.9156 116.25 16.1276 115.835 16.2964C115.419 16.4651 114.922 16.5495 114.343 16.5495ZM114.788 14.9077C115.353 14.9077 115.837 14.796 116.238 14.5725C116.644 14.349 116.952 14.0571 117.162 13.6969C117.376 13.332 117.483 12.9421 117.483 12.5271V11.1726C117.41 11.2456 117.269 11.314 117.059 11.3778C116.854 11.4371 116.619 11.4896 116.354 11.5352C116.09 11.5762 115.832 11.615 115.582 11.6514C115.331 11.6834 115.121 11.7108 114.952 11.7336C114.555 11.7837 114.193 11.8681 113.864 11.9866C113.541 12.1052 113.281 12.2762 113.085 12.4997C112.893 12.7186 112.797 13.0105 112.797 13.3754C112.797 13.8816 112.984 14.2647 113.358 14.5246C113.732 14.78 114.209 14.9077 114.788 14.9077Z"
                  fill="white"
                />
                <path
                  d="M99.2214 16.3169V2.30688H104.215C105.305 2.30688 106.208 2.50527 106.924 2.90203C107.64 3.2988 108.176 3.8415 108.532 4.53014C108.887 5.21421 109.066 5.98493 109.066 6.84234C109.066 7.70428 108.885 8.47956 108.525 9.16821C108.169 9.85228 107.631 10.395 106.91 10.7963C106.195 11.1931 105.294 11.3915 104.209 11.3915H100.775V9.59915H104.017C104.705 9.59915 105.264 9.48061 105.693 9.24347C106.122 9.00173 106.436 8.67338 106.637 8.25838C106.838 7.84338 106.938 7.37136 106.938 6.84234C106.938 6.31333 106.838 5.84358 106.637 5.43311C106.436 5.02269 106.119 4.70115 105.686 4.46858C105.257 4.23598 104.692 4.1197 103.99 4.1197H101.335V16.3169H99.2214Z"
                  fill="white"
                />
                <path
                  d="M89.5898 10.0781V16.3169H87.5442V5.80943H89.5077V7.51963H89.6376C89.8796 6.96325 90.2578 6.51631 90.7731 6.17882C91.2931 5.84133 91.9476 5.67261 92.7366 5.67261C93.4525 5.67261 94.0795 5.8231 94.6176 6.12411C95.1558 6.42052 95.5733 6.86289 95.8695 7.45122C96.1661 8.03951 96.3142 8.76691 96.3142 9.63341V16.3169H94.269V9.87968C94.269 9.1181 94.0706 8.52292 93.6737 8.09426C93.2769 7.66098 92.732 7.44437 92.039 7.44437C91.5647 7.44437 91.1425 7.54696 90.7731 7.7522C90.4084 7.95743 90.1186 8.25841 89.9045 8.65522C89.6947 9.04741 89.5898 9.52168 89.5898 10.0781Z"
                  fill="white"
                />
                <path
                  d="M80.7669 16.5289C79.7316 16.5289 78.8402 16.3077 78.0922 15.8654C77.3488 15.4185 76.7743 14.7914 76.3681 13.9842C75.9671 13.1724 75.7661 12.2215 75.7661 11.1316C75.7661 10.0553 75.9671 9.10668 76.3681 8.28578C76.7743 7.46489 77.3395 6.82414 78.0647 6.36353C78.7945 5.90293 79.6474 5.67261 80.623 5.67261C81.2162 5.67261 81.7907 5.77068 82.3471 5.96677C82.9034 6.16287 83.4026 6.4707 83.8452 6.89026C84.2877 7.30983 84.6363 7.85484 84.8919 8.5252C85.1474 9.19104 85.2748 10.0006 85.2748 10.9537V11.6788H76.9224V10.1465H83.2706C83.2706 9.60837 83.1611 9.13177 82.9423 8.71677C82.7232 8.29721 82.4156 7.96657 82.0188 7.72483C81.6266 7.48312 81.1658 7.36229 80.637 7.36229C80.0625 7.36229 79.5607 7.50364 79.1321 7.78643C78.7078 8.0646 78.3795 8.42946 78.1468 8.88093C77.9187 9.32786 77.8049 9.81356 77.8049 10.338V11.5352C77.8049 12.2375 77.928 12.8349 78.1743 13.3275C78.4252 13.82 78.7738 14.1963 79.221 14.4562C79.6677 14.7116 80.1898 14.8393 80.7872 14.8393C81.1752 14.8393 81.5284 14.7845 81.8478 14.6751C82.1668 14.5611 82.4427 14.3924 82.6754 14.1689C82.9081 13.9454 83.0858 13.6695 83.2089 13.3411L85.1449 13.69C84.99 14.2601 84.7117 14.7595 84.3106 15.1882C83.9137 15.6123 83.4141 15.9429 82.8125 16.1801C82.2147 16.4127 81.5331 16.5289 80.7669 16.5289Z"
                  fill="white"
                />
                <path
                  d="M64.3489 20.2572V5.80943H66.3462V7.51278H66.5176C66.636 7.29388 66.807 7.04075 67.0303 6.75344C67.2537 6.46613 67.5638 6.21529 67.9607 6.00096C68.3575 5.78206 68.8821 5.67261 69.5341 5.67261C70.3824 5.67261 71.1393 5.88694 71.8052 6.31564C72.4711 6.74435 72.9932 7.36229 73.3718 8.16948C73.7547 8.97671 73.9464 9.9481 73.9464 11.0837C73.9464 12.2193 73.7573 13.1929 73.3786 14.0047C73 14.8119 72.4804 15.4344 71.8191 15.8722C71.1579 16.3055 70.4031 16.5221 69.5548 16.5221C68.916 16.5221 68.3939 16.415 67.9882 16.2006C67.5867 15.9862 67.2723 15.7354 67.0443 15.4481C66.8163 15.1608 66.6407 14.9054 66.5176 14.6819H66.394V20.2572H64.3489ZM66.353 11.0632C66.353 11.802 66.4605 12.4495 66.6745 13.0059C66.889 13.5623 67.1991 13.9979 67.6049 14.3125C68.011 14.6226 68.5081 14.7777 69.0962 14.7777C69.7076 14.7777 70.2182 14.6158 70.6286 14.292C71.039 13.9636 71.3491 13.519 71.559 12.958C71.7735 12.3971 71.8805 11.7655 71.8805 11.0632C71.8805 10.3699 71.7756 9.74743 71.5657 9.19561C71.3605 8.64379 71.0504 8.20828 70.6354 7.88902C70.225 7.56977 69.7122 7.41018 69.0962 7.41018C68.5035 7.41018 68.0017 7.56296 67.5913 7.8685C67.1856 8.17405 66.8776 8.60047 66.6678 9.14772C66.4579 9.69501 66.353 10.3335 66.353 11.0632Z"
                  fill="white"
                />
                <path
                  d="M61.8778 9.3119C61.8778 10.8077 61.6041 12.0938 61.0566 13.1701C60.5096 14.2418 59.7595 15.0673 58.8063 15.6465C57.8577 16.2211 56.7789 16.5084 55.5706 16.5084C54.3572 16.5084 53.2741 16.2211 52.3209 15.6465C51.3724 15.0673 50.6248 14.2395 50.0774 13.1632C49.5299 12.0869 49.2566 10.8032 49.2566 9.3119C49.2566 7.81602 49.5299 6.53224 50.0774 5.4605C50.6248 4.38423 51.3724 3.55876 52.3209 2.98414C53.2741 2.40495 54.3572 2.11536 55.5706 2.11536C56.7789 2.11536 57.8577 2.40495 58.8063 2.98414C59.7595 3.55876 60.5096 4.38423 61.0566 5.4605C61.6041 6.53224 61.8778 7.81602 61.8778 9.3119ZM59.7844 9.3119C59.7844 8.17175 59.5996 7.21174 59.2302 6.43188C58.8655 5.6475 58.3637 5.0546 57.7253 4.65331C57.0916 4.24741 56.3732 4.04446 55.5706 4.04446C54.7634 4.04446 54.0429 4.24741 53.4087 4.65331C52.7749 5.0546 52.2731 5.6475 51.9038 6.43188C51.5391 7.21174 51.3567 8.17175 51.3567 9.3119C51.3567 10.452 51.5391 11.4143 51.9038 12.1987C52.2731 12.9785 52.7749 13.5714 53.4087 13.9773C54.0429 14.3786 54.7634 14.5793 55.5706 14.5793C56.3732 14.5793 57.0916 14.3786 57.7253 13.9773C58.3637 13.5714 58.8655 12.9785 59.2302 12.1987C59.5996 11.4143 59.7844 10.452 59.7844 9.3119Z"
                  fill="white"
                />
              </g>
              <defs>
                <clipPath id="clip0_575_424">
                  <rect
                    width="147.231"
                    height="22"
                    fill="white"
                    transform="translate(0.00952148)"
                  />
                </clipPath>
              </defs>
            </svg>
          </div>
        </a>
        <a
          href="https://github.com/midday-ai/languine/issues/new"
          target="_blank"
          rel="noreferrer"
        >
          <div className="h-[84px] border border-primary flex items-center justify-center">
            <span className="text-xs">{t("addYourCompany")}</span>
          </div>
        </a>
        <a
          href="https://github.com/midday-ai/languine/issues/new"
          target="_blank"
          rel="noreferrer"
        >
          <div className="h-[84px] border border-primary flex items-center justify-center">
            <span className="text-xs">{t("addYourCompany")}</span>
          </div>
        </a>
      </div>
    </div>
  );
}
